package allod.gui

import swing._
import javax.swing.{SwingUtilities, UIManager}
import allod.camera.Viewer

/**
 * Created by IntelliJ IDEA.
 * User: allod
 * Date: 1 січ 2010
 * Time: 13:55:08
 */

object MainClass extends SimpleGUIApplication {
  val top = new MainFrame {
    title = "Viewer"
    contents = new Viewer(this, 320, 240)
    peer.setLocationRelativeTo(null)
  }

  override def main(args: Array[String]) {
    super.main(args)
  }

  var style: String = "com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"
  try {
    UIManager.setLookAndFeel(style)
    SwingUtilities.updateComponentTreeUI(top.peer)
  } catch {
    case e: Exception => e.printStackTrace
  }
}